import Layout from '@/layout'

export default { path: '/employees', component: Layout,
  children: [
    {
    // 组织架构 如果自己路由,path设置为空'',那么会自动匹配
      path: '',
      name: 'employees',
      component: () => import('@/views/employees/employees.vue'),
      meta: { title: '员工管理', icon: 'people' }
    },
    {
      // 组织架构 如果自己路由,path设置为空'',那么会自动匹配
      path: 'detail/:id', // 路径传参,需要在路由配置
      name: 'detail',
      component: () => import('@/views/employees/detail.vue'),
      hidden: true
    }
  ]
}
